package com.roncoo.student.stu.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.student.stu.entity.Lecturer;
import com.roncoo.student.stu.service.ILecturerService;
import com.roncoo.student.stu.service.impl.LecturerServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jl
 * @since 2021-03-24
 */
@RestController
@RequestMapping("/stu/lecturer")
public class LecturerController {

    @Resource
    private LecturerServiceImpl lecturerService;

    @PostMapping("findById")
    public Lecturer findAll1(Integer lecturerId){
        Lecturer lecturer =lecturerService.findById(lecturerId);
        return lecturer;
    }
}

